from flask import Blueprint
from flask_restful import Api
from comment.utils.output import output_json

order_bp = Blueprint('order', __name__, url_prefix='/order')  # 创建蓝图
order_api = Api(order_bp)  # 创建蓝图中的资源API

# 使用我们自定义json格式，替代装饰器的写法
order_api.representation('application/json')(output_json)

from Shopping.resources.order.order_resource import *

order_api.add_resource(Shopping_Order, '/shopping_order', endpoint='shopping_order')
order_api.add_resource(Shopping_Order_List, '/shopping_order_list', endpoint='shopping_order_list')
